import request from '@/utils/request'

// 查询工艺组成列表
export function listRouteprocess(data) {
  return request({
    url: '/routeprocess/routeprocess/page',
    method: 'post',
    data: data
  })
}

// 查询工艺组成详细
export function getRouteprocess(recordId) {
  return request({
    url: '/routeprocess/routeprocess/info',
    method: 'post',
    data: {recordId}
  })
}

// 新增工艺组成
export function addRouteprocess(data) {
  return request({
    url: '/routeprocess/routeprocess/add',
    method: 'post',
    data: data
  })
}

// 修改工艺组成
export function updateRouteprocess(data) {
  return request({
    url: '/routeprocess/routeprocess/update',
    method: 'post',
    data: data
  })
}

// 删除工艺组成
export function delRouteprocess(recordId) {
  return request({
    url: '/routeprocess/routeprocess/delete',
    method: 'post',
    data: {recordId}
  })
}
